package com.chtw.entity;

import java.util.ArrayList;
import java.util.List;

public class TeacherInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeacherInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTeachIdIsNull() {
            addCriterion("teach_id is null");
            return (Criteria) this;
        }

        public Criteria andTeachIdIsNotNull() {
            addCriterion("teach_id is not null");
            return (Criteria) this;
        }

        public Criteria andTeachIdEqualTo(Integer value) {
            addCriterion("teach_id =", value, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdNotEqualTo(Integer value) {
            addCriterion("teach_id <>", value, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdGreaterThan(Integer value) {
            addCriterion("teach_id >", value, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("teach_id >=", value, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdLessThan(Integer value) {
            addCriterion("teach_id <", value, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdLessThanOrEqualTo(Integer value) {
            addCriterion("teach_id <=", value, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdIn(List<Integer> values) {
            addCriterion("teach_id in", values, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdNotIn(List<Integer> values) {
            addCriterion("teach_id not in", values, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdBetween(Integer value1, Integer value2) {
            addCriterion("teach_id between", value1, value2, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachIdNotBetween(Integer value1, Integer value2) {
            addCriterion("teach_id not between", value1, value2, "teachId");
            return (Criteria) this;
        }

        public Criteria andTeachNameIsNull() {
            addCriterion("teach_name is null");
            return (Criteria) this;
        }

        public Criteria andTeachNameIsNotNull() {
            addCriterion("teach_name is not null");
            return (Criteria) this;
        }

        public Criteria andTeachNameEqualTo(String value) {
            addCriterion("teach_name =", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameNotEqualTo(String value) {
            addCriterion("teach_name <>", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameGreaterThan(String value) {
            addCriterion("teach_name >", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameGreaterThanOrEqualTo(String value) {
            addCriterion("teach_name >=", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameLessThan(String value) {
            addCriterion("teach_name <", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameLessThanOrEqualTo(String value) {
            addCriterion("teach_name <=", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameLike(String value) {
            addCriterion("teach_name like", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameNotLike(String value) {
            addCriterion("teach_name not like", value, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameIn(List<String> values) {
            addCriterion("teach_name in", values, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameNotIn(List<String> values) {
            addCriterion("teach_name not in", values, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameBetween(String value1, String value2) {
            addCriterion("teach_name between", value1, value2, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachNameNotBetween(String value1, String value2) {
            addCriterion("teach_name not between", value1, value2, "teachName");
            return (Criteria) this;
        }

        public Criteria andTeachGenderIsNull() {
            addCriterion("teach_gender is null");
            return (Criteria) this;
        }

        public Criteria andTeachGenderIsNotNull() {
            addCriterion("teach_gender is not null");
            return (Criteria) this;
        }

        public Criteria andTeachGenderEqualTo(String value) {
            addCriterion("teach_gender =", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderNotEqualTo(String value) {
            addCriterion("teach_gender <>", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderGreaterThan(String value) {
            addCriterion("teach_gender >", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderGreaterThanOrEqualTo(String value) {
            addCriterion("teach_gender >=", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderLessThan(String value) {
            addCriterion("teach_gender <", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderLessThanOrEqualTo(String value) {
            addCriterion("teach_gender <=", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderLike(String value) {
            addCriterion("teach_gender like", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderNotLike(String value) {
            addCriterion("teach_gender not like", value, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderIn(List<String> values) {
            addCriterion("teach_gender in", values, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderNotIn(List<String> values) {
            addCriterion("teach_gender not in", values, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderBetween(String value1, String value2) {
            addCriterion("teach_gender between", value1, value2, "teachGender");
            return (Criteria) this;
        }

        public Criteria andTeachGenderNotBetween(String value1, String value2) {
            addCriterion("teach_gender not between", value1, value2, "teachGender");
            return (Criteria) this;
        }

        public Criteria andPositionNoIsNull() {
            addCriterion("position_no is null");
            return (Criteria) this;
        }

        public Criteria andPositionNoIsNotNull() {
            addCriterion("position_no is not null");
            return (Criteria) this;
        }

        public Criteria andPositionNoEqualTo(Integer value) {
            addCriterion("position_no =", value, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoNotEqualTo(Integer value) {
            addCriterion("position_no <>", value, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoGreaterThan(Integer value) {
            addCriterion("position_no >", value, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("position_no >=", value, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoLessThan(Integer value) {
            addCriterion("position_no <", value, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoLessThanOrEqualTo(Integer value) {
            addCriterion("position_no <=", value, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoIn(List<Integer> values) {
            addCriterion("position_no in", values, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoNotIn(List<Integer> values) {
            addCriterion("position_no not in", values, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoBetween(Integer value1, Integer value2) {
            addCriterion("position_no between", value1, value2, "positionNo");
            return (Criteria) this;
        }

        public Criteria andPositionNoNotBetween(Integer value1, Integer value2) {
            addCriterion("position_no not between", value1, value2, "positionNo");
            return (Criteria) this;
        }

        public Criteria andSalaryIsNull() {
            addCriterion("salary is null");
            return (Criteria) this;
        }

        public Criteria andSalaryIsNotNull() {
            addCriterion("salary is not null");
            return (Criteria) this;
        }

        public Criteria andSalaryEqualTo(Double value) {
            addCriterion("salary =", value, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryNotEqualTo(Double value) {
            addCriterion("salary <>", value, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryGreaterThan(Double value) {
            addCriterion("salary >", value, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryGreaterThanOrEqualTo(Double value) {
            addCriterion("salary >=", value, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryLessThan(Double value) {
            addCriterion("salary <", value, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryLessThanOrEqualTo(Double value) {
            addCriterion("salary <=", value, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryIn(List<Double> values) {
            addCriterion("salary in", values, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryNotIn(List<Double> values) {
            addCriterion("salary not in", values, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryBetween(Double value1, Double value2) {
            addCriterion("salary between", value1, value2, "salary");
            return (Criteria) this;
        }

        public Criteria andSalaryNotBetween(Double value1, Double value2) {
            addCriterion("salary not between", value1, value2, "salary");
            return (Criteria) this;
        }

        public Criteria andEntryDataIsNull() {
            addCriterion("entry_data is null");
            return (Criteria) this;
        }

        public Criteria andEntryDataIsNotNull() {
            addCriterion("entry_data is not null");
            return (Criteria) this;
        }

        public Criteria andEntryDataEqualTo(String value) {
            addCriterion("entry_data =", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataNotEqualTo(String value) {
            addCriterion("entry_data <>", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataGreaterThan(String value) {
            addCriterion("entry_data >", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataGreaterThanOrEqualTo(String value) {
            addCriterion("entry_data >=", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataLessThan(String value) {
            addCriterion("entry_data <", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataLessThanOrEqualTo(String value) {
            addCriterion("entry_data <=", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataLike(String value) {
            addCriterion("entry_data like", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataNotLike(String value) {
            addCriterion("entry_data not like", value, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataIn(List<String> values) {
            addCriterion("entry_data in", values, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataNotIn(List<String> values) {
            addCriterion("entry_data not in", values, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataBetween(String value1, String value2) {
            addCriterion("entry_data between", value1, value2, "entryData");
            return (Criteria) this;
        }

        public Criteria andEntryDataNotBetween(String value1, String value2) {
            addCriterion("entry_data not between", value1, value2, "entryData");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}